$(function() {
	var nav = $('.swiper-nav').swiper({
		slidesPerView : 'auto',
		freeMode : true,
		freeModeFluid : true,
		onSlideClick : function(nav) {
			pages.swipeTo(nav.clickedSlideIndex)
		}
	})
	function fixPagesHeight() {
		$('.swiper-pages').css({
			height : $(window).height() - nav.height
		})
	}
	$(window).on('resize', function() {
		fixPagesHeight()
	})
	fixPagesHeight()
	var pages = $('.swiper-pages').swiper()
	$('.scroll-container').each(function() {
		$(this).swiper({
			mode : 'vertical',
			scrollContainer : true,
			mousewheelControl : true,
			scrollbar : {
				container : $(this).find('.swiper-scrollbar')[0]
			}
		})
	})
	/*var swiperGallery = $('.swiper-gallery').swiper({
		mode : 'vertical',
		slidesPerView : 'auto',
		freeMode : true,
		freeModeFluid : true,
		scrollbar : {
			container : $('.swiper-gallery .swiper-scrollbar')[0]
		}
	})
	swiperGallery.reInit()*/
})